<!--国家页面-->
<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body class="bg">
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h4>国家目录</h4>
    <hr>
    <!--    新增按钮-->
    <a th:href="@{/countries/new}" class="btn btn-primary btn-sm mb-3">新增</a>
    <br>
    <table class="table table-bordered table-striped">
        <thead class="thead-dark">
        <tr>
            <th>国家</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="aCountry : ${countries}">
            <td th:text="${aCountry.name}"></td>
        </tr>
        </tbody>
    </table>

</div>


</body>

</html>